package com.lemon.smartsafetynew.ui.activity.record;

import android.os.Bundle;
import android.support.v4.app.Fragment;

import com.lemon.smartsafety.R;
import com.lemon.smartsafetynew.entity.me.MeCompanyVo;
import com.lemon.smartsafetynew.ui.activity.base.BaseFragmentActivity;
import com.lemon.smartsafetynew.ui.fragment.record.RecordOccupationFragment;
import com.lemon.smartsafetynew.util.constants.KeyConstants;

/**
 * 职业病信息
 * Created by JiangAn on 2018/5/24.
 */

public class RecordOccupationActivity extends BaseFragmentActivity {

    private static MeCompanyVo companyVo;

    @Override
    protected void getBundleArgs() {
        super.getBundleArgs();

        Bundle bundle = getIntent().getExtras();
        if (bundle != null) {
            if (bundle.containsKey(KeyConstants.KEY_COMPANY_VO)) {
                companyVo = (MeCompanyVo) bundle.getSerializable(KeyConstants.KEY_COMPANY_VO);
            }
        }
    }

    @Override
    public Fragment getFragment() {
        return RecordOccupationFragment.newInstance(companyVo);
    }

    @Override
    protected void initTitle() {
        this.setBarTitle(R.string.record_occupationa_info);
    }
}


